from selenium import webdriver
from time import sleep
from selenium.webdriver.common.by import By

lianxi=webdriver.Chrome()
lianxi.maximize_window()
lianxi.get("https://cn.bing.com/")

sleep(3)
a=lianxi.find_element(By.ID,"sb_form_q")
a.send_keys("java")
sleep(3)
b=lianxi.find_element(By.ID,"search_icon")
b.click()
sleep(3)
lianxi.quit()